package com.chengjie.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chengjie.common.annotation.Excel;
import com.chengjie.common.core.domain.BaseEntity;

/**
 * 业主信息对象 user_info
 * 
 * @author ycj
 * @date 2022-04-30
 */
public class UserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 住户姓名 */
    @Excel(name = "住户姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 身份证 */
    @Excel(name = "身份证")
    private String idCard;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String mobile;

    /** 住址 */
    @Excel(name = "住址")
    private String address;

    /** 人脸信息 */
    @Excel(name = "人脸信息")
    private Long faceId;

    /** 门禁 */
    @Excel(name = "门禁")
    private Long accessControl;

    /** 住户类型 */
    @Excel(name = "住户类型")
    private Long userType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setFaceId(Long faceId) 
    {
        this.faceId = faceId;
    }

    public Long getFaceId() 
    {
        return faceId;
    }
    public void setAccessControl(Long accessControl) 
    {
        this.accessControl = accessControl;
    }

    public Long getAccessControl() 
    {
        return accessControl;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sex", getSex())
            .append("idCard", getIdCard())
            .append("mobile", getMobile())
            .append("address", getAddress())
            .append("faceId", getFaceId())
            .append("accessControl", getAccessControl())
            .append("userType", getUserType())
            .toString();
    }
}
